package ch01.decrator;

/**
 * Created by zc on 2016/11/20.
 */
public class ConcreateDecrator2 extends Decrator {

    public ConcreateDecrator2(Component component) {
        super(component);
    }

    @Override
    public void doSomething() {
        super.doSomething();
        method2();
    }

    private void method2(){
        System.out.println("this is another ConcreteDecrator2");
    }
}
